package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.ReservationUserCenterRo;
import com.centanet.framework.interfaces.IResponseListener;

import java.util.List;

/**
 * 更新我的约看(分配经纪人)
 * Created by ruanzb on 2016/5/9.
 */
public class UpdateReservationApi extends UserCenterApi<ReservationUserCenterRo> {

    private String staffNo;  //经纪人编号
    private String staffName;   //经纪人名称
    private String customerMobile;
    private String customerName;
    private List<Integer> reserveIDList;  //约看标识

    public UpdateReservationApi(Class<?> tag, Class<ReservationUserCenterRo> aClass, IResponseListener<ReservationUserCenterRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public void setCustomerMobile(String customerMobile) {
        this.customerMobile = customerMobile;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public void setReserveIDList(List<Integer> reserveIDList) {
        this.reserveIDList = reserveIDList;
    }

    @Override
    protected void setParams() {

        putParams("StaffNo", staffNo);
        putParams("StaffName", staffName);
        putParams("CustomerMobile", customerMobile);
        putParams("CustomerName", customerName);
        putParams("ReserveIDList", reserveIDList);
        putParams("CustomerSex", "先生");
    }

    @Override
    protected String getPath() {
        return "UpdateReservationRequest";
    }

    @Override
    protected int getMethod() {
        return Request.Method.POST;
    }
}
